package com.sz.admin.sysuseremployee.pojo.po;

import com.mybatisflex.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.io.Serializable;
import java.io.Serial;
import com.sz.mysql.EntityChangeListener;
import java.time.LocalDateTime;

/**
* <p>
* 员工用户表
* </p>
*
* @author sz-admin
* @since 2025-09-04
*/
@Data
@Table(value = "sys_user_employee", onInsert = EntityChangeListener.class, onUpdate = EntityChangeListener.class)
@Schema(description = "员工用户表")
public class SysUserEmployee implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Id(keyType = KeyType.Auto)
    @Schema(description ="用户ID")
    private Long id;

    @Schema(description ="用户名")
    private String username;

    @Schema(description ="密码")
    private String pwd;

    @Schema(description ="手机号")
    private String phone;

    @Schema(description ="昵称")
    private String nickname;

    @Schema(description ="性别(0 未知 1 男 2 女)")
    private Integer sex;

    @Schema(description ="生日")
    private String birthday;

    @Schema(description ="头像地址")
    private String logo;

    @Schema(description ="年龄，--废弃，以生日为主")
    private Integer age;

    @Schema(description ="身份证")
    private String idCard;

    @Schema(description ="邮箱地址")
    private String email;

    @Schema(description ="账户状态 (如 冻结；禁言；正常。 关联字典表account_status)")
    private String accountStatusCd;

    @Schema(description ="标签（自定义关联到字典表）")
    private String userTagCd;

    @Schema(description ="最近一次登录时间")
    private LocalDateTime lastLoginTime;

    @Schema(description ="创建时间")
    private LocalDateTime createTime;

    @Schema(description ="更新时间")
    private LocalDateTime updateTime;

    @Column(isLogicDelete = true)
    @Schema(description ="是否删除")
    private String delFlag;

    @Schema(description ="创建人ID")
    private Long createId;

    @Schema(description ="更新人ID")
    private Long updateId;

}